/*
 * ErrorAst.h
 *
 *  Created on: 5 Nov 2010
 *      Author: kn308
 */

#ifndef ERRORAST_H_
#define ERRORAST_H_

#include <MAlice/Ast/ExpressionAst.h>

namespace MAlice
{

class ErrorAst: public ExpressionAst
{
private:
	string mMessage;

public:
	ErrorAst(const string& message);
	virtual ~ErrorAst();
	virtual llvm::Value* generate();
	const string& getMessage() const;
};

} // namespace MAlice

#endif /* ERRORAST_H_ */
